package com.lge.pitchingcoins.ui.clients.playgame;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;

import com.lge.pitchingcoins.util.PitchingCoinsLog;

public class GamePlayView extends FrameLayout {
    public static final String TAG = "GamePlayView";

//    private Context mContext = null;
    
    public GamePlayBasedView mBasedView = null;

    
    public GamePlayView(Context context) {
        super(context);
//        mContext = context;
        inits(context);
    }

    public GamePlayView(Context context, AttributeSet attrs) {
        super(context, attrs);
//        mContext = context;
        inits(context);
    }

    public GamePlayView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
//        mContext = context;
        inits(context);
    }

    
    // Member Methods
    private void inits(Context context) {
        initViews(context);
        initCommons(context);
    }

    private void initViews(Context context) {
        mBasedView = new GamePlayBasedView(context);
        addView(mBasedView, new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MATCH_PARENT, RelativeLayout.LayoutParams.MATCH_PARENT));
    }

    private void initCommons(Context context) {

    }
}